using System;
using UnityEngine;
using QFramework;

namespace ProjectMyFarmAndShe
{
	public partial class Home : ViewController
	{
		void Start()
		{
			// Code Here
			
			AudioKit.PlayMusic("resources://FarmSound1",true);
			AudioKit.Settings.MusicVolume.Value = 3;
		}

		private void OnTriggerEnter2D(Collider2D other)
		{
			if (other.gameObject.CompareTag("Player"))
			{
				Global.Day.Value++;
				AudioKit.PlaySound("resources://NextDay");
				Global.Player.transform.Position2D(-3.4f, 0);
			}
		}
	}
}
